﻿using System;
using Caliburn.Micro;

namespace OsmerFvg.ViewModels
{
   public  class ForecastZoomViewModel : Screen
    {

        private readonly INavigationService _navigationService;

        public ForecastZoomViewModel(INavigationService navigationService)
        {
            _navigationService = navigationService;
        }

        private string _pageHeaderText;
        public string PageHeaderText
        {
            get { return _pageHeaderText; }
            set
            {
                if (_pageHeaderText != value)
                {
                    _pageHeaderText = value;
                    NotifyOfPropertyChange(() => PageHeaderText);
                }
            }
        }


        private Uri _forecastImageSource;
        public Uri ForecastImageSource
        {
            get { return _forecastImageSource; }
            set
            {
                if (_forecastImageSource != value)
                {
                    _forecastImageSource = value;
                    NotifyOfPropertyChange(() => ForecastImageSource);
                }
            }
        }

        public void BackTapCommand()
        {
            _navigationService.GoBack();
        }


    }
}
